package com.rovinj_server.utisl;

import android.app.ProgressDialog;

/**
    * Created by Administrator on 2016-05-23.
            */
    public class DialogUtil {
    /**
     * 弹出进度框
     * @param msg
     */
    public static void showDialog(ProgressDialog dialog,String msg){
        dialog.setMessage(msg);
        dialog.onStart();
        dialog.show();
    }

    public static void dismissDialog(ProgressDialog dialog){
        if (dialog != null)
        dialog.dismiss();
    }
}
